#!/usr/bin/env python3
# -*-coding:utf-8 -*-
# __author__=LuLu
from selenium.webdriver.common.by import By

'''
导航栏的操作元素类
'''


class NavigationLoc(object):
    """"获取导航栏的元素类"""

    # 导航主体
    navigation_main = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul')  # 导航条主体

    # 标题
    page_title = (By.XPATH, '//*[@id="etravel"]/div/div[3]/div/div[1]/h2')
    # 会员
    member_bar_main = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[1]/div/div/label')  # main会员
    member_list = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[1]/div/ul/li[2]')  # 会员列表
    # member_list_title = (By.XPATH, '//*[@id="etravel"]/div/div[3]/div/div[1]/h2')  # 会员标题

    # 分销商管理
    distributor_bar_main = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[2]/div/div/label')  # main分销商
    distributor_bar_list = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[2]/div/ul/li[2]')  # 分销商列表
    distributor_bar_application = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[2]/div/ul/li[4]')  # 分销商申请

    # 攻略
    tourguide_bar_main = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[3]/div/div/label')  # main攻略
    tourguide_list = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[3]/div/ul/li[2]')  # 攻略列表
    tourguide_destination = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[3]/div/ul/li[10]')  # 攻略目的地管理
    tourguide_topic = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[3]/div/ul/li[14]')  # 攻略话题管理
    tourguide_theme = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[3]/div/ul/li[18]')  # 攻略主题管理
    tourguide_preview = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[3]/div/ul/li[22]')  # 攻略预览设置

    # 食材
    food_main = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[4]/div/div/label')  # main食材
    food_recommended_list = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[4]/div/ul/li[2]')  # 食材推荐列表
    food_destination = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[4]/div/ul/li[11]')  # 攻略目的地管理

    # 订单
    order_main = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[5]/div/div/label')
    order_tourguide = (By.XPATH, '//*[@id="etravel"]/div/div[2]/ul/li[5]/div/ul/li[2]')
